public class Main {
    public static void main(String[] args) {
        int [][] mat = {{1,2},{3,4}};
        int r = 1,c=4;
        Solution_1  solution_1 = new Solution_1();
        System.out.println(solution_1.matrixReshape(mat,r,c));
    }
}